package com.by.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.by.entity.ProductAttr;
import com.by.service.ProductAttrService;
import com.by.mapper.ProductAttrMapper;
import com.by.vo.ProductAttrValueVo;
import com.by.vo.ProductAttrVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16564
* @description 针对表【pms_product_attr(规格项表)】的数据库操作Service实现
* @createDate 2025-10-11 15:46:43
*/
@Service
public class ProductAttrServiceImpl extends ServiceImpl<ProductAttrMapper, ProductAttr>
    implements ProductAttrService{

    @Autowired
    private ProductAttrMapper productAttrMapper;

    @Override
    public List<ProductAttrVo> listAttr() {
        return productAttrMapper.listAttr();
    }

    @Override
    public List<ProductAttrValueVo> listAttrValue(Long attrId) {
        return productAttrMapper.listAttrValue(attrId);
    }
}




